﻿<UserControl x:Class="Microsoft.Telco.Controls.AttachedFilesList"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <ListBox HorizontalAlignment="Stretch"
             ItemsSource="{Binding}"
             x:Name="ListFiles">
        <ListBox.ItemTemplate>
            <DataTemplate>
                <Grid Width="245">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding Name}"
                               Grid.Column="0"></TextBlock>
                    <Image VerticalAlignment="Center"
                           Source="../Assets/delete.png"
                           MouseLeftButtonDown="DeleteImage_MouseLeftButtonDown"
                           Tag="{Binding Name}"
                           Grid.Column="2"></Image>
                </Grid>
            </DataTemplate>
        </ListBox.ItemTemplate>
    </ListBox>
</UserControl>
